package construction.adapter.classAdapter;

public class Iphone {

    public void charging(Voltage5v voltage5v){
        if(voltage5v.out5v()==5){
            System.out.println(5+"电压可以充电");
        }else {
            System.out.println(voltage5v.out5v()+"电压不 可以充电");
        }
    }
}
